﻿using System;
using System.Collections.ObjectModel;
using System.Threading;
using System.Windows.Input;
using System.Windows.Threading;
using Common;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using Microsoft.ServiceBus;
using Microsoft.ServiceBus.Messaging;

namespace OnlineStoreSystem
{
    public class MainViewModel : ViewModelBase
    {
        public ObservableCollection<OrderItem> Items { get; private set; }

        public ICommand PlaceOrderCommand { get; private set; }

        public MainViewModel()
        {
            Items = new ObservableCollection<OrderItem>();
            PlaceOrderCommand = new RelayCommand(ExecutePlaceOrderCommand);
        }

        private void ExecutePlaceOrderCommand()
        {
            
        }

        
    }

    public class OrderItem
    {
        public String Name { get; set; }
        public Double Price { get; set; }
        public Double Quantity { get; set; }
    }
}